import instance from '@/utils/request'

export function loginApi(data) {
  return instance({
    url: '/sys/login',
    method: 'post',
    data
  })
}

// 获取用户信息
export function getInfoApi() {
  return instance({
    url:'/sys/profile',
    method:'post', 
  })
}

// 获取员工信息
export function sysUserIdApi(id){
  return instance({
    url:`/sys/user/${id}`
  })
}

// 退出登录
export function logoutApi() {

}
